﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _3小数类型
{
    class Program
    {
        static void Main(string[] args)
        {
            int age;//声明一个变量
            age = 10;//给这个变量赋值

            float a = 1.23f;//float,单精度浮点类型，也就是类似于1.13m
            float a1 = 1.23f;
            float a2 = 1.23f;

            double b = 1.1234;//double双精度浮点型
            double b1 = 1.213;
            double b2 = 1.21;

            decimal c = 12.23m;//高精度，财务专用
            decimal c1 = 12.21m;
            decimal c2 = 12.21m;


            Console.WriteLine();
            Console.ReadKey();
        }
    }
}
